"""
    静态方法用于向量
"""

list_of = [
    ['00','01','02','03','04'],
    ['10','11','12','13','14'],
    ['20','21','22','23','24']
]

class Vector2:
    def __init__(self, x, y):
      self.x = x
      self.y = y

    # 向左,表示左边方向，x不变，y变
    @staticmethod
    def left():
        return Vector2(0, -1)
    # 向右,表示右边方向
    def rigft():
        return Vector2(0, 1)

pos1 = Vector2(1,2)
l01 = Vector2.left()
pos1.x += l01.x
pos1.y += l01.y
print(pos1.x, pos1.y)